package homework1.test02;

public class GirlFriend {
    // 私有属性
    private String name;
    private double height;
    private double weight;

    // 有参构造方法
    public GirlFriend(String name, double height, double weight) {
        this.name = name;
        this.height = height;
        this.weight = weight;
    }

    // 洗衣服方法
    public void wash() {
        System.out.println("女朋友帮我洗衣服");
    }

    // 做饭方法
    public void cook() {
        System.out.println("女朋友给我做饭");
    }

    // 展示属性方法
    public void show() {
        System.out.println("我女朋友叫" + name + ",身高" + height + "厘米,体重" + weight + "斤");
    }
}
